/****************************************************************************
**
** Copyright (C) 2009 Kimitake
** Contact: Kimitake (kimitake@gmail.com)
**
** This file is part of CuteUp client.
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General
** Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** This file is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without evene the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this file. If not, see <http://www.gnu.org/licenses/>.
**
****************************************************************************/

#ifndef	__COMMON_H__
#define __COMMON_H__

#include <QString>
#include <QDir>
#include <qconfig.h>
#include <QDebug>

QT_BEGIN_NAMESPACE
class QString;
class QDir;
QT_END_NAMESPACE

#define	CHAR(str) ((const char*)str.toLatin1())

const char	SETTING_FILE[]	= "setting.xml";
#if defined(Q_WS_MAEMO_5)
const int cDefaultPointSize = 16;
#else
const int cDefaultPointSize = 10;
#endif

/*! \brief Common setting class
 *
 * Return setting values
 */
class Common
{
private:
	static QString userHome;
    static QString dataHome;
    static QString userAgent;

public:
	Common(){};

	static const QString UserHome() { return userHome; }
	static const QString SettingFilePath() { return userHome + "/setting.xml"; }
    static const QString LogPath() { return userHome + "/cuteup.log"; }

	static const QString DataHome() { return dataHome; }
    static const QString UserAgent() { return userAgent; }

};

#endif /* __COMMON_H__ */
